package com.h2cloud.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.sql.Timestamp;
import java.io.Serializable;


@Getter
@Setter
public class Result {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 主治医生id
     */
    private Integer userid;

    /**
     * 患者姓名
     */
    private String name;

    /**
     * 患者年龄
     */
    private Integer age;

    /**
     * 联系方式
     */
    private String contactInfo;

    /**
     * 检查日期
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp time;

    /**
     * 就诊号
     */
    private String treatmentNumber;

    /**
     * 住院号
     */
    private String inpatientNumber;

    /**
     * 眼底图片
     */
    private String pic;

    /**
     * 阳性概率
     */
    private Object positive;

    /**
     * 阴性概率
     */
    private Object negative;

    /**
     * 眼底描述
     */
    private String picDesc;

    /**
     * 医嘱
     */
    private String note;

    /**
     * 人工复诊
     */
    private Integer finalResult;

    /**
     * 数据权限
     */
    private Integer status; // 1 公开  0 不公开

    @Override
    public String toString() {
        return "Result{\n" +
                "id=" + id +
                ", userid=" + userid +
                "\n, name='" + name + '\'' +
                ", age=" + age +
                ", contactInfo='" + contactInfo + '\'' +
                "\n, time=" + time +
                ", treatmentNumber='" + treatmentNumber + '\'' +
                ", inpatientNumber='" + inpatientNumber + '\'' +
                "\n, pic='" + pic + '\'' +
                "\n, positive=" + positive +
                ", negative=" + negative +
                ", picDesc='" + picDesc + '\'' +
                "\n, note='" + note + '\'' +
                ", finalResult=" + finalResult +
                ", status=" + status +
                '}';
    }
}
